const initState = {
  list: [],
}

// 新闻 reducer
export default function newsReducer(state = initState, action) {
  switch (action.type) {
    case 'news/setList':
      return { ...state, list: action.payload }
    default:
      return state
  }
}
